package com.xuecheng.manage_course.service;

import com.xuecheng.framework.domain.system.SysDictionary;
import com.xuecheng.manage_course.dao.SysDictionaryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Lyq
 * @version 1.0
 * @create 2019/11/11 9:34
 */
@Service
public class SysDictionaryService {

    @Autowired
    SysDictionaryDao sysDictionaryDao;
    //根据字典分类的type查询字典信息
    public SysDictionary findDictionaryByType(String type){
        return  sysDictionaryDao.findByDType(type);
    }

}
